import React from 'react';

import { IWelcomeLayout } from '@/pages/HomePage/type';

import { WelcomeContext } from '@/pages/HomePage/hooks';

export const WelcomeLayout: React.FC<IWelcomeLayout> = ({
  value,
  children,
}) => {
  return (
    <WelcomeContext.Provider value={value}>
      <div className={value?.prefixCls + 'layout'}>{children ?? '--'}</div>
    </WelcomeContext.Provider>
  );
};
